package com.zhan.utils.page;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class PageResult<T> implements java.io.Serializable {
    private static final long serialVersionUID = 5098359014045394868L;

    @ApiModelProperty("总记录数")
    private long total;
    @ApiModelProperty("每页数")
    private long size;
    @ApiModelProperty("总页数")
    private long pageNum;
    @ApiModelProperty("当前页数")
    private long current = 1L;
    @ApiModelProperty("结果集")
    private List<T> data;
    @ApiModelProperty("其他数据")
    private Map<String, Object> otherData;

}
